﻿using UnityEngine;
using UnityEditor;
using XMLib.AM;

namespace ActionSystem.Core
{
    [CustomEditor(typeof(StateMachineTool))]
    public class StateMachineToolEditor : Editor
    {
        public override void OnInspectorGUI()
        {
            StateMachineTool actionMachine = (StateMachineTool)target;

            base.OnInspectorGUI();

            if (GUILayout.Button("打开编辑器"))
            {
                ActionEditorWindow.ShowEditor(actionMachine.gameObject, actionMachine.SMConfig);
            }
        }
    }
}